let express = require('express')
let router = express.Router()

let user = require('./api/user')
//请求,get方法
router.get('/user',user.all)
router.get('/user/floor',user.floor)
router.get('/user/room',user.room)
router.get('/user/storage',user.storage)
router.get('/user/lease',user.lease)
router.get('/user/region',user.region)
router.get('/user/pay',user.pay)
router.get('/user/lot',user.lot)
router.get('/user/vehicle',user.vehicle)
router.get('/user/card',user.card)
router.get('/user/visitor',user.visitor)
router.get('/user/complaint',user.complaint)
router.get('/user/activity',user.activity)
router.get('/user/notice',user.notice)
router.get('/user/charge',user.charge)
router.get('/user/cycle',user.cycle)
router.get('/user/classification',user.classification)
router.get('/user/maintenance',user.maintenance)
router.get('/user/record',user.record)
router.get('/user/mission',user.mission)
router.get('/user/plan',user.plan)
router.get('/user/points',user.points)
router.get('/user/routes',user.routes)
router.get('/user/project',user.project)
router.get('/user/daily',user.daily)
router.get('/user/weekly',user.weekly)
router.get('/user/monthly',user.monthly)
router.get('/user/business',user.business)
router.get('/user/resident',user.resident)
router.get('/user/complain',user.complain)
router.get('/user/facilities',user.facilities)
router.get('/user/staff',user.staff)
router.get('/user/role',user.role)
router.get('/user/log',user.log)
//删除,get方法
router.get('/user/del',user.del)
router.get('/user/delroom',user.delroom)
router.get('/user/delstorage',user.delstorage)
router.get('/user/delregion',user.delregion)
// router.get('/user/dellot',user.dellot)
router.get('/user/search',user.search)
router.get('/user/search1',user.search1)
router.get('/user/search2',user.search2)
//详情渲染,get方法
router.get('/user/detail',user.detail)
//编辑,post方法
router.post('/user/addfloor',user.addfloor)
router.post('/user/updatefloor',user.updatefloor)
router.post('/user/addroom',user.addroom)
router.post('/user/updateroom',user.updateroom)
router.post('/user/updatestorag',user.updatestorag)
router.post('/user/addstorage',user.addstorage)
router.post('/user/addregion',user.addregion)
router.post('/user/updateregion',user.updateregion)
router.post('/user/addlot',user.addlot)
router.post('/user/updatelot',user.updatelot)
router.post('/user/addcard',user.addcard)
router.post('/user/updatecard',user.updatecard)
module.exports = router
